<div>
    <h5><?php echo $this->trans->_($this->info['title']) ?></h5>
    <form id="infoForm" onsubmit="return false;" method="post" action="" >
        <table class="sub-group info-table" width="100%">
        <?php foreach ($this->permisions as $name => $cat){ ?>

            
                    <tr><td  class="titleGroup" colspan="2">
                            <h4 style="float: left; cursor: pointer; color: #0088BB" onclick="$('tr.<?php echo $name ?>').toggle('slow')"><?php echo $cat['title'] ?>
                            </h4>
                            <div style="padding-top: 1px; text-align: right">&nbsp;&nbsp;&nbsp;&nbsp;
                                <a style="color: #E28100" onclick="globalModule.selectDeselectCheckbox('<?php echo $name ?>', true)" href="#" >check all</a>&nbsp;&nbsp;
                                <a style="color: #E28100" onclick="globalModule.selectDeselectCheckbox('<?php echo $name ?>', false)" href="#">clear all</a>
                            </div>
                            </td>
                    </tr>
                    <?php
                        if(isset($cat['modules']) && count($cat['modules'])) {
                            foreach ($cat['modules'] as $mname => $module){ ?>

                            <tr class="<?php echo $name ?> hide">
                                <td class="titleItem"><?php echo $module['title'] ?></td>
                                <td class="checkBoxBlock">
                                    <?php if(isset($module['permissions']) && count($module['permissions'])) { ?>
                                    <label><input onclick="globalModule.setFullAccess(this)" class="full-access" <?php echo (in_array($mname . '_full-access', $this->group['perm_view'])) ? 'checked' : '' ?> data-perm="<?php echo $mname.':full-access' ?>" type="checkbox" name="<?php echo $mname.'_full-access' ?>" />&nbsp;
                                        full access</label> &nbsp;&nbsp;&nbsp;
                                        <?php foreach ( $module['permissions'] as $pname => $perm ) { ?>
                                        <label><input onclick="globalModule.isFullAccess(this)" class="select-access" <?php echo (in_array($mname . '_' . $pname, $this->group['perm_view'])) ? 'checked' : '' ?> data-perm="<?php echo implode('|', $perm) ?>" type="checkbox" name="<?php echo $mname . '_' . $pname ?>" />&nbsp;
                                        <?php echo str_replace('_', ' ', $pname) ?></label>&nbsp;&nbsp;
                                    <?php } } ?>
                                </td>
                            </tr>
                    <?php } } ?>
        <?php } ?>
            </table>
    </form>
    <div style="display: none" id="groupID"><?php echo $this->id ?></div>
</div>